import instance from '@/utils/request.js'

export const getManualList = (params) => {
  return instance({
    url: '/manual/list',
    method: 'get',
    params,
  })
}
export const editManual = ( data) => {

  return instance({
    url: '/manual',
    method: 'put',
    data,
  })
}

export const deleteManual = (id) => {
  return instance({
    url: `/manual/${id}`,
    method: 'delete',
  })
}

export const addManual = (data) => {
  return instance({
    url: '/manual',
    method: 'post',
    data,
  })
}
